package com.tdf.webblog.entity;


import lombok.*;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class AdminRole {

    private int id;

    /**
     * Role name.
     */
    private String name;

    /**
     * Role name in Chinese.
     */

    private String nameZh;

    /**
     * Role status.
     */
    private boolean enabled;


    /**
     * Transient property for storing permissions owned by current role.
     */

    private List<AdminPermission> perms;

    /**
     * Transient property for storing menus owned by current role.
     */

    private List<AdminMenu> menus;
}
